package com.teach.controller.photo;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.teach.entity.UserInfo;
import com.teach.service.impl.UserServiceImpl;
import com.teach.service.impl.photo.PhotoPicServiceImpl;

import lombok.extern.slf4j.Slf4j;

@RestController
@RequestMapping("/photo")
@Slf4j
public class PhotoUserPicController {
	
	@Autowired
	private PhotoPicServiceImpl impl;
	
	
	
	@RequestMapping("user-pic.do")
	public Object userPic(String photoWriterId) {
		log.debug("photoWriterId = {}", photoWriterId);
		log.debug("相册信息 = {}", impl.selectByWriterId(photoWriterId));
		return impl.selectByWriterId(photoWriterId);
	}
	
	
}